﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DataShow.rank
{
    /// <summary>
    /// Handler 的摘要说明
    /// </summary>
    public class Handler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string year = context.Request.QueryString["year"];
            string month = context.Request.QueryString["month"];
            context.Response.Write(GetJSON(year,month));
        }

        private string GetJSON(string year,string month)
        {
            return new codeBLL.RankBLL().GetNormalRank(year, month);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}